package com.tangyuan.common.config;

import org.redisson.Redisson;
import org.redisson.api.RedissonClient;
import org.redisson.config.Config;

public class RedissonConfig {

    public static RedissonClient createRedissonClient() {
        // 创建 Redisson 配置对象
        Config config = new Config();
        config.useSingleServer().setAddress("redis://47.98.193.174:6379")
                .setPassword("shengtangfeng_redis");

        // 创建 Redisson 客户端实例
        return Redisson.create(config);
    }
}
